import React from 'react';
import {Router} from 'dva/router';
import createRoutes from "./routes";

function RouterConfig({app, history}) {
  return (
    <Router history={history}>
      {createRoutes(app)}
    </Router>
  );
}

export default RouterConfig;
